package com.rmy.queue.api;

import com.alibaba.fastjson2.JSONObject;
import com.rmy.common.core.domain.R;
import com.rmy.queue.api.domain.CellDataReq;
import com.rmy.queue.api.utils.WebUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("接口转发服务")
@RestController
@RequestMapping("/queue/api")
public class TransController {

    @ApiOperation("证件信息上送")
    @PostMapping("/uploadCard")
    public String uploadCard(@RequestBody CellDataReq uploadTakeNumberReq)
    {
       String str =  JSONObject.toJSONString(uploadTakeNumberReq);
       String strRet = WebUtils.httpRequest("", "https://loan.shyrcb.com/wx/creditmarket/creditmarket/callNumber/onlineCallSave",
                "POST", str);
        return strRet;
    }
}
